﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HtmlAgilityPack;

namespace Analyze
{
   
    public class Parser
    {
        private List<HtmlNode>_objects;

        public List<HtmlNode> Objects
        {
            get { return _objects; }
            set { _objects = value; }
        }
        private List<HtmlNode> _links;
        public Parser()
        {
            _objects = new List<HtmlNode>();
        }

        public void ParseLinks()
        {
            foreach (var item in _objects)
            {
                HtmlNode linkNode = item.SelectSingleNode("//a[@href='http]");
                _links.Add(linkNode);

            }
        }

    }
}
